var gm = require('gm');
var avatar='./uploads/三九/2.jpg';
gm(avatar).crop(100,100,100,100)
    .resize(100,100,'!')
    .write(avatar, function (err) {
        if (err){
            throw err;
        }
        console.log('修改完成');
    });



